package com.woniuxy.entity;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.Valid;

/**
 * @Author: 马宇航
 * @Todo: 嵌套验证
 * @DateTime: 22/02/10/0010 上午 11:37
 * @Component: 成都蜗牛学苑
 **/
public class GirlFriend {
    @NotEmpty(message = "女朋友的名字不能为空！")
    String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "GirlFriend{" +
                "name='" + name + '\'' +
                '}';
    }
}
